import { Carousel } from 'antd';
import styles from '../pages/index.less';

export default () => {
  return <div className={styles.banner}>
    <Carousel>
      <div>
        <div className={styles.img} style={{ backgroundImage: 'url(https://wipi.oss-cn-shanghai.aliyuncs.com/2021-12-11/IMG_031434567.jpeg)' }}>
          <div className={styles.text}>
            <h2>微信小程序首屏性能优化</h2>
            <p>
              <span><time>6 个月前</time></span>
              <span className={styles.dot}>·</span>
              <span>71 次阅读</span>
            </p>
          </div>
        </div>
      </div>
    </Carousel>
  </div>
}